package cn.seocoo.platform.rule.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.seocoo.platform.common.core.domain.BaseEntity;

/**
 * 规则设置表 tb_rule
 * 
 * @author wujian
 * @date 2019-12-30
 */
public class Rule extends BaseEntity
{
	private static final long serialVersionUID = 1L;

	public static final String TOP_RULE = "1";
	public static final String USER_RULE = "2";
	public static final String AMOUNT_RULE = "3";
	public static final String PHONE_RULE = "4";

	/** 主键id */
	private Integer id;
	/** 规则类型(1:置顶规则;2:用户协议) */
	private String type;
	/** 规则详情 */
	private String content;
	/** 状态（0:正常;1:删除) */
	private String delFlag;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setType(String type) 
	{
		this.type = type;
	}

	public String getType() 
	{
		return type;
	}
	public void setContent(String content) 
	{
		this.content = content;
	}

	public String getContent() 
	{
		return content;
	}
	public void setDelFlag(String delFlag) 
	{
		this.delFlag = delFlag;
	}

	public String getDelFlag() 
	{
		return delFlag;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("content", getContent())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
